//
//  Connection.h
//  mUBB
//
//  Created by Cosmin Stirbu on 1/13/13.
//  Copyright (c) 2013 Cosmin Stirbu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ConnectionDelegate.h"



@interface Connection : NSURLConnection<NSURLConnectionDataDelegate, NSURLConnectionDelegate> {
    @private
    // The data that will be received from the service
    NSMutableData *data;
    
    // Service Status code
    int statusCode;
}

// Connection Delegate (the parser)
@property(nonatomic, strong) ConnectionDelegate *connectionDelegate;

// Constructor
- (id)initWithRequest:(NSURLRequest *)_request delegate:(ConnectionDelegate *)_delegate;

// Execute request
- (void)executeRequest;


@end
